<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
	<meta name="screen-orientation" content="portrait">
	<meta name="format-detection" content="telephone=no" />
	<#if entity??>
	<meta id="description" name="description" content="${entity.title}" />
	<meta name="Keywords" content="${entity.title}" />
	<title>${entity.title}</title>
	</#if>	
	<link rel="stylesheet" type="text/css" href="css/ask.css" />
	<script src="js/jquery-1.9.0.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/json2.js" type="text/javascript" charset="utf-8"></script>
</head>
<body style="padding-top:0px">
	<div class="cont noPad">
		<div class="banner">
			<img src="images/ask_banner.jpg"  />
		</div>
		<#if entity??>
		<div class="ask-msg">
			${entity.discribe}
		</div>
		<input type="hidden" id="questionnaireId" value="${entity.id}">
		<#list entity.questions as question >
		<#if question.type == 1>
			 <#assign validateType="radio">
		</#if>
		<#if question.type == 2>
			 <#assign validateType="checkbox">
		</#if>
		<#if question.type == 3>
			 <#if question.sequence == 1>
			 <#assign validateType="tel">
			 <#else>
			 <#assign validateType="text">
			 </#if>
		</#if>
		<dl index="${question_index + 1}" questionId="${question.id}" questionType="${question.type}" validateType="${validateType}">
			<dt> ${question_index + 1}、${question.content}
				<cite>
					<#if question.type == 1>单选题</#if><#if question.type == 2>多选题</#if><#if question.type == 3>填空题</#if>
				</cite>
			</dt>
			<#if question.sequence == 15>
				<div class="banner">
					<img src="images/ask-table.jpg"  />
				</div>
			</#if>
			<dd >
			<#if question.type == 1>
				<#list question.options as option>
				<span>
					<input type="radio" value="${option.content}" id="${option.id}" name="${question.id}" class="regular-radio">
        			<label for="${option.id}"><em></em>${option.content}</label><#if option.content == '其他'><input type="text" class="txtbox w-70" placeholder="请输入"/></#if>
        		</span>
        		</#list>
			</#if>
			<#if question.type == 2>
				<#list question.options as option>
				<span>
	        		<input type="checkbox" value="${option.content}" id="${option.id}" name="${question.id}" class="regular-checkbox">
	        		<label for="${option.id}"><em></em>${option.content}</label><#if option.content == '其他'><input type="text"class="txtbox w-70" placeholder="请输入"/></#if>
		        </span>
			    </#list>
			</#if>
			<#if question.type == 3>
				<#if question.sequence == 4>
				省份和城市：<input type="text" name="${question.id}" class="txtbox w-60" placeholder="请输入">
				<#else>
				<input type="text" name="${question.id}" class="txtbox w-100" placeholder="请输入">
				</#if>
			</#if>
			</dd>
		</dl>
		</#list>
		</#if>
	</div>
	<div class="goBtn" id="commit">
		<a class="btn btn4 tbox" href="#">提交</a>
	</div>
	<script type="text/javascript" src="js/zm.share.js" charset="utf-8"></script>
	<script type="text/javascript" src="js/zm.questionnaire.js" charset="utf-8"></script>
</body>
</html>